home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol C-14 / Vol C-14.iso / games / peanut.swf / scripts / DefineSprite_94 / frame_7 / DoAction.as
Text File  |  2012-04-23  |  503b  |  21 lines

  1. if(eval("../:puckSmash") == "1")
  2. {
  3.    gotoAndPlay(10);
  4. }
  5. else
  6. {
  7.    puckGoalY = ("49.75" - eval("../:puckZ")) * "4";
  8.    if((- "1") * puckpower < puckGoalY and puckGoalY < puckpower and "240" < eval("../:puckX") and eval("../:puckX") < "315" and puckpower < "35" and goal == "0")
  9.    {
  10.       tellTarget("../board")
  11.       {
  12.          gotoAndStop("goal");
  13.          play();
  14.       }
  15.       set("../:score",eval("../:score") + "30");
  16.       goal = "1";
  17.       gotoAndPlay(10);
  18.    }
  19.    play();
  20. }
  21.